package com.elitel.common.metadata;


/**
 * 数据库元数据列
 *
 * @author baijf
 * @since 2023-10-7 11:17:40
 */
public class MetaColumn {
    private String tableSchema;
    private String tableName;
    private String columnName;
    private String typeName;
    private String columnSize;
    private String remarks;
    private String ordinalPosition;
    /**
     * pkFlag 主键标识 {0 , 1 }  0 不是主键， 1 是主键
     */
    private int pkFlag;

    public String getTableSchema() {
        return tableSchema;
    }

    public void setTableSchema(String tableSchema) {
        this.tableSchema = tableSchema;
    }

    public String getTableName() {
        return tableName;
    }

    public void setTableName(String tableName) {
        this.tableName = tableName;
    }

    public String getColumnName() {
        return columnName;
    }

    public void setColumnName(String columnName) {
        this.columnName = columnName;
    }

    public String getTypeName() {
        return typeName;
    }

    public void setTypeName(String typeName) {
        this.typeName = typeName;
    }

    public String getColumnSize() {
        return columnSize;
    }

    public void setColumnSize(String columnSize) {
        this.columnSize = columnSize;
    }

    public String getRemarks() {
        return remarks;
    }

    public void setRemarks(String remarks) {
        this.remarks = remarks;
    }

    public String getOrdinalPosition() {
        return ordinalPosition;
    }

    public void setOrdinalPosition(String ordinalPosition) {
        this.ordinalPosition = ordinalPosition;
    }

    public int getPkFlag() {
        return pkFlag;
    }

    public void setPkFlag(int pkFlag) {
        this.pkFlag = pkFlag;
    }

    @Override
    public String toString() {
        return "MetaColumn{" +
                "tableSchema='" + tableSchema + '\'' +
                ", tableName='" + tableName + '\'' +
                ", columnName='" + columnName + '\'' +
                ", typeName='" + typeName + '\'' +
                ", columnSize='" + columnSize + '\'' +
                ", remarks='" + remarks + '\'' +
                ", ordinalPosition='" + ordinalPosition + '\'' +
                ", pkFlag=" + pkFlag +
                '}';
    }
}
